﻿<Window x:Class="ResultsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
    Title="ResultsWindow" Height="660" Width="854" Icon="/FASTSearchTool;component/Images/MossMan.jpg" Name="ResultsWindow" AllowsTransparency="False" Opacity="55">
    <Grid>
        <Label Content="Query:" Height="28" HorizontalAlignment="Left" Name="Label1" VerticalAlignment="Top" Width="52" Margin="12,0,0,0" FontWeight="Bold" />
        <TextBox Height="113" HorizontalAlignment="Left" Margin="12,26,0,0" Name="txtQuery" VerticalAlignment="Top" Width="675" VerticalScrollBarVisibility="Auto" FontWeight="Normal" />
        <TabControl Height="322" HorizontalAlignment="Left" Margin="12,287,0,0" Name="tabCtrlResults" VerticalAlignment="Top" Width="808" ClipToBounds="True" SnapsToDevicePixels="True">
            <TabItem Header="Relevant Results" Name="tabResults">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="220*" />
                        <ColumnDefinition Width="578*" />
                    </Grid.ColumnDefinitions>
                    <toolkit:DataGrid AutoGenerateColumns="True" Height="247" HorizontalAlignment="Left" Margin="1,37,0,0" Name="dgRelevantResults" VerticalAlignment="Top" Width="791" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}" CanUserAddRows="True" IsReadOnly="True" Grid.ColumnSpan="2" AlternatingRowBackground="DarkOrange" ClipboardCopyMode="IncludeHeader" />
                    <Button Content="Copy To Clipboard" Height="23" HorizontalAlignment="Left" Margin="1,6,0,0" Name="btnCopyToClipboard" VerticalAlignment="Top" Width="125" />
                </Grid>
            </TabItem>
            <TabItem Header="Special Term Results  (Best Bets)" Name="tabSpecialTermResults">
                <toolkit:DataGrid AutoGenerateColumns="False" Height="252" Name="dgSpecialTermResults" Width="788" />
            </TabItem>
            <TabItem Header="Refiner Results" Name="tabRefiner" ClipToBounds="False">
                <Grid Height="286" Name="Grid1" Width="795">
                    <toolkit:DataGrid AlternatingRowBackground="Gold" AutoGenerateColumns="False" ClipboardCopyMode="IncludeHeader" Height="247" HorizontalAlignment="Left" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}" Margin="3,0,0,3" Name="dgRefiner" SelectionMode="Extended" SelectionUnit="CellOrRowHeader" VerticalAlignment="Bottom" Width="796">
                        <toolkit:DataGrid.Columns>
                            <toolkit:DataGridCheckBoxColumn Header="AddToQuery" Binding="{Binding AddRefinement}" />
                            <toolkit:DataGridTextColumn Binding="{Binding RefinerName}" Header="RefinerName" IsReadOnly="True" />
                            <toolkit:DataGridTextColumn Binding="{Binding RefinementCount}" Header="RefinementCount" IsReadOnly="True" />
                            <toolkit:DataGridTextColumn Binding="{Binding RefinementName}" Header="RefinementName" IsReadOnly="True" />
                            <toolkit:DataGridTextColumn Binding="{Binding RefinementValue}" Header="RefinementValue" IsReadOnly="True" />
                            <toolkit:DataGridTextColumn Binding="{Binding RefinementToken}" Header="RefinementToken" IsReadOnly="True" />
                        </toolkit:DataGrid.Columns>
                    </toolkit:DataGrid>
                    <Button Content="Add Refinements to Query" Height="23" HorizontalAlignment="Left" Margin="3,6,0,0" Name="btnAddToRefinements" VerticalAlignment="Top" Width="179" />
                </Grid>
            </TabItem>
            <TabItem Header="Visual Best Bet Results" Name="tabVisualBB">
                <toolkit:DataGrid AutoGenerateColumns="True" Height="255" Name="dgVBB" Width="789" IsSynchronizedWithCurrentItem="True" />
            </TabItem>
            <TabItem Header="XML (Text)" Name="tabXmlText">
                <TextBox Height="247" Name="txtResultsXml" Width="781" VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
            </TabItem>
            <TabItem Header="XML (IE)" Name="tabIE">
                <WebBrowser Height="258" Name="ieXML" Width="794" />
            </TabItem>
        </TabControl>
        <Label Content="Total Rows:" Height="28" HorizontalAlignment="Left" Margin="12,145,0,0" Name="lblTot" VerticalAlignment="Top" Width="115" FontWeight="Bold" />
        <Label Content="Is Total Rows Exact:" Height="28" Margin="12,179,0,0" Name="lblTotalR" VerticalAlignment="Top" FontWeight="Bold" HorizontalAlignment="Left" Width="125" />
        <Label Content="N/A" Height="28" HorizontalAlignment="Left" Margin="130,179,0,0" Name="lblIsTotalRowsExact" VerticalAlignment="Top" Width="107" Foreground="Yellow" FontWeight="SemiBold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Label Height="28" HorizontalAlignment="Left" Margin="12,250,0,0" Name="Label2" VerticalAlignment="Top" Width="115" FontWeight="Bold" Content="Query Terms:" />
        <Label Content="Elapsed Time:" FontWeight="Bold" Height="31" HorizontalAlignment="Left" Margin="12,213,0,0" Name="Label3" VerticalAlignment="Top" Width="115" />
        <Label Content="N/A" Height="28" HorizontalAlignment="Left" Margin="130,213,0,0" Name="lblElapsedTime" VerticalAlignment="Top" Foreground="Yellow" FontWeight="SemiBold" Width="107">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Label Content="Keyword:" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="324,179,0,0" Name="Label4" VerticalAlignment="Top" Width="115" />
        <Label Content="Definition:" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="324,213,0,0" Name="Label5" VerticalAlignment="Top" Width="115" />
        <Label Content="Query Modification:" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="324,250,0,0" Name="Label6" VerticalAlignment="Top" Width="129" />
        <Label Content="N/A" Height="28" HorizontalAlignment="Left" Margin="461,179,0,0" Name="lblKeyword" VerticalAlignment="Top" Width="359" Foreground="Yellow" FontWeight="SemiBold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Label Content="N/A" Height="28" HorizontalAlignment="Left" Margin="461,213,0,0" Name="lblDefinition" VerticalAlignment="Top" Width="359" Foreground="Yellow" FontWeight="SemiBold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Label Content="N/A" Height="28" HorizontalAlignment="Left" Margin="461,250,0,0" Name="lblQueryModification" VerticalAlignment="Top" Width="359" Foreground="Yellow" FontWeight="SemiBold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Button Content="Save Results To File" Height="23" HorizontalAlignment="Left" Margin="693,55,0,0" Name="btnSaveFile" VerticalAlignment="Top" Width="127" />
        <Button Content="Save Query" Height="23" HorizontalAlignment="Left" Margin="693,26,0,0" Name="btnSaveQuery" VerticalAlignment="Top" Width="127" />
        <Button Content="Run Updated Query" Height="23" HorizontalAlignment="Left" Margin="693,116,0,0" Name="brnRerunQuery" VerticalAlignment="Top" Width="127" />
        <Label Content="0" Foreground="Yellow" Height="28" HorizontalAlignment="Left" Margin="130,145,0,0" Name="lblTotalRows" VerticalAlignment="Top" Width="107" FontWeight="SemiBold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Label Content="Showing Results:" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="324,145,0,0" Name="Label7" VerticalAlignment="Top" Width="129" />
        <Label Content="0" Foreground="Yellow" Height="28" HorizontalAlignment="Left" Margin="461,145,0,0" Name="lblShowingResults" VerticalAlignment="Top" Width="107" FontWeight="SemiBold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Button Content="Query Next" Height="23" HorizontalAlignment="Left" Margin="574,146,0,0" Name="btnQueryNext" VerticalAlignment="Top" Width="113" IsEnabled="False" />
        <Label Height="39" HorizontalAlignment="Left" Margin="130,250,0,0" Name="lblQueryTerms" VerticalAlignment="Top" Width="188" Foreground="Yellow" FontWeight="Bold">
            <Label.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#0000FF00" Offset="1" />
                </LinearGradientBrush>
            </Label.Background>
        </Label>
        <Button Content="Save All Results To File" Height="23" HorizontalAlignment="Left" Margin="693,87,0,0" Name="btnSaveAllResults" VerticalAlignment="Top" Width="127" />
        <Grid.Background>
            <ImageBrush />
        </Grid.Background>
    </Grid>
</Window>
